package cn.netswap.jeegorilla.framework.security.consts;

import java.util.ArrayList;

/**
 * @author lgw
 * @version 1.0
 * @date 2020/3/20 11:31
 */
public class SecurityConstants {

    public static final Integer SUCCESSSTATUS = 1001; //认证成功
    public static final String SUCCESSSTATUS_MSG = "认证成功"; //认证成功
    public static final Integer FAILURESTATUS = 1002; //认证失败
    public static final String FAILURESTATUS_MSG = "认证失败"; //认证失败

    public static final Integer SMSCODEERROR = 1003; //验证码错误

    public static final String DEFAULT_PARAMETER_NAME_IMAGECODE ="imageCode";

    public static final String DEFAULT_PARAMETER_NAME_SMSCODE ="smsCode";

    public static final String DEFAULT_PARAMETER_NAME_MOBILEPHONE ="mobilephone";

    public static final String DEFAULT_LOGIN_URL = "/login";

    public static final String DEFAULT_LOGIN_FORNTINDEX = "/index";

    public static final String DEFAULT_SMS_LOG_URL = "/sms/login";

    public static final String DEFAULT_LOGIN_PAGE = "/loginPage";

    public static final String ADMIN_INDEX = "/elementAdmin/index";

    public static final String DEFAULT_POST_METHOD="POST";

    public static final String[] ignoreUris = new String[]{
            "/gorillaSecurity/code/validCodeImage",
            "/gorillaSecurity/code/smsValidCode",
            "/socialRegisterSuccess",
            "/getOrderList",
            "/gorillaSocial/social/**",
            "/signup",
            "/js/**",
            "/css/**",
            "/data/**",
            "/img/**",
            "/video/**",
            "/fonts/**",
            "/druid/**",
            "/elementadminpack/**",
            "/elementAdmin/index",
            "/index",
            "/login",
            "/sms/login",
            "/sessionInvaid",
            "/logoutPage",
//            "/oauth/**"
    };


}
